package job

type Job struct {
	ID    string
	Tasks map[string]*Task
}

func (j *Job) Run() {
	for _, t := range j.Tasks {
		go t.Run()
	}
}

func (j *Job) Stop() {
	for _, t := range j.Tasks {
		t.Stop("")
	}
}

func (j *Job) Restart() {
	for _, t := range j.Tasks {
		t.Restart()
	}
}
